<?php
class Community extends ActiveRecord\Model{

	
	function get_communities()
	{
		$communities = community::find('all',array('conditions'=>array('status'=>'active')));
		return $communities;
		
	}
	
}